<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	List<TblSiteResume> list = (List<TblSiteResume>)request.getAttribute("list");
	List<TblSiteJob> jobList = (List<TblSiteJob>)request.getAttribute("jobList");
	ResumeForm form = (ResumeForm)request.getAttribute("command");
	String jobName = StringUtils.isNotBlank(form.getJobName())?form.getJobName():"";
%>
<div class="oaTable">
<form >
		<div class="form-item">
			<label for="jobName">应聘职位:</label>
<%-- 			<select id="jobName">
				<option value="">全部</option>
				<%
					if(!CollectionUtils.isEmpty(jobList)){
						for(TblSiteJob job:jobList){
							%>
							<option value="<%=job.getJobName()%>" <%=jobName.equalsIgnoreCase(job.getJobName())?"selected='selected'":"" %>><%=job.getJobName() %></option>
							<%
						}
					}
				%>
			</select> --%>
			<input id="jobName" value="<%=jobName%>">
		</div>
		<div class="form-item form-item-two">
			<label>应聘时间:</label> <input id="createDateBegin"
				name="createDateBegin" type="text" class="easyui-datebox">--
			<input id="createDateEnd" name="createDateEnd" type="text"
				class="easyui-datebox">
		</div>		
		<div class="form-item form-item">
			<a href="javascript:XF.Site.listResumeSearch()"
				class="input-btn-microsoft input-btn-microsoft-24">搜索</a>
		</div>		
</form>
<table class="tableList">
	<tbody>
		<tr id="tableHeader">
			<th style="width: 10%;">姓名</th>
			<th style="width: 15%;">应聘职位</th>
			<th style="width: 15%;">电话</th>
			<th style="width: 35%;">一句话介绍</th>
			<th style="width:14%;">应聘时间</th>
			<th style="width:6%;">简历</th>
			<th style="width:5%;">操作</th>
		</tr>
		<%
			if(!CollectionUtils.isEmpty(list)){
				for(TblSiteResume resume:list){
					String id = EncrypTool.encode(resume.getId()+"");
					%>
						<tr>
							<td><%=resume.getName() %></td>
							<td><%=resume.getJob() %></td>
							<td><%=resume.getMobile() %></td>
							<td><%=null!=resume.getShortWord()?resume.getShortWord():"" %></td>
							<td><%=resume.getAddtime() %></td>
							<td><a href="<%=request.getContextPath()%>/resumextra/<%=resume.getDoc()%>">下载</a></td>
							<td><a href="javascript:XF.Site.deleteResume('<%=id %>')">删除</a></td>
						</tr>
					<%
				}
			}
		%>
	</tbody>

	<tfoot>
		<tr id="tableFooter">
			<td colspan="6">
				<div class="pagination">
					<monggoTag:pagination href="resume_search"
						pageSize="<%=form.getPageSize()%>"
						totalRecord="<%=form.getTotalRecord() %>"
						currentPage="<%=form.getPageNum() %>">
					</monggoTag:pagination>
				</div>
			</td>
		</tr>
	</tfoot>
</table>
</div>
<script>
	$(function() {
		XF.Site.init();
		XF.Site.init_css();
	
	});
	$("#createDateBegin").datebox({
		formatter:XF.dateFormatter,
		parser:XF.dateParse
	});
	$("#createDateEnd").datebox({
		formatter:XF.dateFormatter,
		parser:XF.dateParse
	});
</script>
































